#include "CFootballKeeper.h"


CFootballKeeper::CFootballKeeper(void)
	: CFootballPlayer()
{
}

CFootballKeeper::CFootballKeeper(int _PosX, int _PosY)
	: CFootballPlayer(_PosX, _PosY)
{
}

CFootballKeeper::~CFootballKeeper(void)
{
}

bool CFootballKeeper::Pass(void)
{
	return true;
}

bool CFootballKeeper::Keep(void)
{
	// successful parry
	if (GetRandom(1, 100) <= s_CONST_CHANCE_KEEP) {
		return true;
	// goal
	} else {
		return false;
	}
}